package com.macro.mall.ums.enums;

/**
 * 提现状态枚举
 *
 * @author xuyanjun
 * @date 2019-09-19
 */
public enum MemberWithdrawLogStatusEnum {

    /**
     * 提现中
     */
    CONDUCT(0, "提现中"),

    /**
     * 提现成功
     */
    SUCCESS(1, "提现成功"),
    /**
     * 提现失败
     */
    FAIL(2, "提现失败"),;
    /**
     * 值
     */
    private int value;

    /**
     * 描述
     */
    private String description;

    MemberWithdrawLogStatusEnum(int value, String description) {
        this.value = value;
        this.description = description;
    }

    public static MemberWithdrawLogStatusEnum enumOf(int value) {
        for (MemberWithdrawLogStatusEnum userLevelEnum : values()) {
            if (value == userLevelEnum.value) {
                return userLevelEnum;
            }
        }
        throw new IllegalArgumentException("不合法的提现状态枚举。");
    }

    public int getValue() {
        return value;
    }

    public String getDescription() {
        return description;
    }

}
